/**
 * Copyright � 2012 GestureSoft. ALL RIGHTS RESERVED.
 * This file contains proprietary and GestureSoft CONFIDENTIAL Information.
 * Use, disclosure or reproduction is prohibited.
 * 
 * @fileName LoadFaultEvent.as
 * @creationDate Aug 8, 2012
 * @author 
 * @version 1.0
 */
package com.gesturesoft.imultimax.model.loader.events
{
	
	import flash.events.Event;
	
	/**
	 * Used for dispatching load fault events
	 * message contains the reason for fault
	 */ 
	public class LoadFaultEvent extends Event
	{
		
		public static const LOAD_FAILED:String = "load_fialed";
		
		private var _msg:String;
		
		public function LoadFaultEvent(type:String, msg:String, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			
			message = msg;
			super(type, bubbles, cancelable);
			
		}
		
		override public function clone():Event 
		{
			
			return new LoadFaultEvent(type, message, bubbles, cancelable);
			
		}
		
		public function get message():String
		{
			
			return _msg;
			
		}
		public function set message(val:String):void
		{
			
			_msg = val;
			
		}
		
	}
	
}